//
//  KCNavigationVC.m
//  alphagoodbye
//
//  Created by king on 16/4/7.
//  Copyright © 2016年 KC. All rights reserved.
//

#import "KCNavigationVC.h"
#import "KC_DETAIL_VC.h"

@interface KCNavigationVC ()

@end

@implementation KCNavigationVC

- (void)viewDidLoad {
    [super viewDidLoad];
    self.navigationBar.hidden = YES;
}

-(void)pushViewController:(UIViewController *)viewController animated:(BOOL)animated{
    
    viewController.navigationItem.backBarButtonItem = [[UIBarButtonItem alloc]initWithTitle:@"" style:UIBarButtonItemStyleDone target:nil action:nil];
    
    if ([viewController isKindOfClass:[KC_DETAIL_VC class]]) {
        viewController.hidesBottomBarWhenPushed = YES;
    }
    
    [super pushViewController:viewController animated:animated];
    
}

@end
